<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>777老虎机游戏</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="loading-screen">
        <div class="loading-icon">🎰</div>
        <div class="loading-text">加载中...</div>
    </div>
    <div class="container" style="display: none;">
        <!-- 金币展示区域 -->
        <div class="coin-display">
            <div class="coin-amount">
                <span class="coin-icon">🪙</span>
                <span class="coin-count">1000</span>
            </div>
        </div>
        
        <!-- 老虎机核心区域 -->
        <div class="slot-machine">
            <!-- 老虎机结果显示区域 -->
            <div class="win-message">
                <span></span>
            </div>
            
            <!-- 三行三列的游戏区域 -->
            <div class="reels-container">
                <!-- 第一列 -->
                <div class="reel">
                    <div class="symbols-container">
                        <!-- 符号将由JavaScript动态生成 -->
                    </div>
                </div>
                
                <!-- 第二列 -->
                <div class="reel">
                    <div class="symbols-container">
                        <!-- 符号将由JavaScript动态生成 -->
                    </div>
                </div>
                
                <!-- 第三列 -->
                <div class="reel">
                    <div class="symbols-container">
                        <!-- 符号将由JavaScript动态生成 -->
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 控制区域 -->
        <div class="controls">
            <!-- 下注区域 -->
            <div class="bet-controls">
                <button class="bet-btn decrease">-</button>
                <div class="bet-amount">10</div>
                <button class="bet-btn increase">+</button>
            </div>
            
            <!-- 转动按钮 -->
            <button class="spin-btn">转动</button>
            
            <!-- 最大下注按钮 -->
            <button class="max-bet-btn">最大下注</button>
        </div>
    </div>
    
    <!-- 弹出消息 -->
    <div class="popup-message"></div>
    
    <!-- 飞行金币容器 -->
    <div class="flying-coins-container"></div>
    
    <!-- 菜单按钮和菜单 -->
    <div class="menu-container">
        <button class="menu-btn">☰</button>
        <div class="menu-dropdown">
            <div class="menu-item help-menu-item">
                <span class="menu-icon">❓</span>
                <span class="menu-text">帮助</span>
            </div>
            <div class="menu-item stats-menu-item">
                <span class="menu-icon">📊</span>
                <span class="menu-text">统计</span>
            </div>
            <div class="menu-item paylines-menu-item">
                <span class="menu-icon">📈</span>
                <span class="menu-text">支付线</span>
            </div>
        </div>
    </div>
    
    <!-- 帮助对话框 -->
    <div class="help-modal">
        <div class="help-content">
            <h2>游戏帮助</h2>
            <div class="help-close">✖</div>
            <div class="help-info">
                <h3>游戏规则：</h3>
                <p>1. 设置您的下注金额并点击"转动"按钮开始游戏</p>
                <p>2. 当三个转轮停止后，将检查是否形成获胜组合</p>
                
                <h3>获胜组合：</h3>
                <ul>
                    <li>两个相同符号：获得对应符号倍数奖励</li>
                    <li>三个相同符号：获得对应符号3倍倍数奖励</li>
                    <li>三个7️⃣：大奖！获得50倍下注奖励</li>
                    <li>🃏 Wild符号：可替代任何普通符号形成获胜组合</li>
                    <li>🌟 Scatter符号：任意位置出现即有奖励</li>
                </ul>
                
                <h3>符号奖励倍数：</h3>
                <div class="symbol-payouts">
                    <div class="payout-item"><span>🍒</span> x2</div>
                    <div class="payout-item"><span>🍋</span> x4</div>
                    <div class="payout-item"><span>7️⃣</span> x10</div>
                    <div class="payout-item"><span>💎</span> x15</div>
                    <div class="payout-item"><span>🔔</span> x6</div>
                    <div class="payout-item"><span>🍉</span> x3</div>
                    <div class="payout-item"><span>🃏</span> Wild</div>
                    <div class="payout-item"><span>🌟</span> x5</div>
                </div>

                <h3>支付线：</h3>
                <p>游戏包含7条支付线，包括水平线、对角线和V形线</p>
            </div>
        </div>
    </div>

    <!-- 统计对话框 -->
    <div class="stats-modal">
        <div class="stats-content">
            <h2>游戏统计</h2>
            <div class="stats-close">✖</div>
            <div class="stats-info">
                <div class="stats-item">
                    <span class="stats-label">总下注:</span>
                    <span class="stats-value" id="total-bet">0</span>
                </div>
                <div class="stats-item">
                    <span class="stats-label">总赢取:</span>
                    <span class="stats-value" id="total-win">0</span>
                </div>
                <div class="stats-item">
                    <span class="stats-label">旋转次数:</span>
                    <span class="stats-value" id="spins-count">0</span>
                </div>
                <div class="stats-item">
                    <span class="stats-label">获胜次数:</span>
                    <span class="stats-value" id="wins-count">0</span>
                </div>
                <div class="stats-item">
                    <span class="stats-label">胜率:</span>
                    <span class="stats-value" id="win-rate">0%</span>
                </div>
                <div class="stats-item">
                    <span class="stats-label">收益率:</span>
                    <span class="stats-value" id="return-rate">0%</span>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 支付线对话框 -->
    <div class="paylines-modal">
        <div class="paylines-content">
            <h2>支付线</h2>
            <div class="paylines-close">✖</div>
            <div class="paylines-info">
                <div class="payline-item">
                    <div class="payline-grid horizontal-top">
                        <div class="cell active"></div>
                        <div class="cell active"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                    </div>
                    <div class="payline-name">顶行</div>
                </div>
                <div class="payline-item">
                    <div class="payline-grid horizontal-middle">
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell active"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                    </div>
                    <div class="payline-name">中行</div>
                </div>
                <div class="payline-item">
                    <div class="payline-grid horizontal-bottom">
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell active"></div>
                        <div class="cell active"></div>
                    </div>
                    <div class="payline-name">底行</div>
                </div>
                <div class="payline-item">
                    <div class="payline-grid diagonal-1">
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                    </div>
                    <div class="payline-name">对角线1</div>
                </div>
                <div class="payline-item">
                    <div class="payline-grid diagonal-2">
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                    </div>
                    <div class="payline-name">对角线2</div>
                </div>
                <div class="payline-item">
                    <div class="payline-grid v-shape">
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                    </div>
                    <div class="payline-name">V形线</div>
                </div>
                <div class="payline-item">
                    <div class="payline-grid inverted-v">
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                        <div class="cell"></div>
                        <div class="cell active"></div>
                    </div>
                    <div class="payline-name">倒V形</div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="script.js"></script>
</body>
</html>
